3.339 \(\int \frac{x (c+d x+e x^2)}{a+b x^3} \, dx\)

Optimal. Leaf size=183 \[ \frac{\left (a^{2/3} e+b^{2/3} c\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 \sqrt [3]{a} b^{4/3}}-\frac{\left (a^{2/3} e+b^{2/3} c\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 \sqrt [3]{a} b^{4/3}}-\frac{\left (b^{2/3} c-a^{2/3} e\right ) \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} \sqrt [3]{a} b^{4/3}}+\frac{d \log \left (a+b x^3\right )}{3 b}+\frac{e x}{b} \]

[Out]

(e*x)/b - ((b^(2/3)*c - a^(2/3)*e)*ArcTan[(a^(1/3) - 2*b^(1/3)*x)/(Sqrt[3]*a^(1/3))])/(Sqrt[3]*a^(1/3)*b^(4/3)
) - ((b^(2/3)*c + a^(2/3)*e)*Log[a^(1/3) + b^(1/3)*x])/(3*a^(1/3)*b^(4/3)) + ((b^(2/3)*c + a^(2/3)*e)*Log[a^(2
/3) - a^(1/3)*b^(1/3)*x + b^(2/3)*x^2])/(6*a^(1/3)*b^(4/3)) + (d*Log[a + b*x^3])/(3*b)

________________________________________________________________________________________

Rubi [A]  time = 0.225588, antiderivative size = 183, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 9, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {1887, 1871, 1860, 31, 634, 617, 204, 628, 260} \[ \frac{\left (a^{2/3} e+b^{2/3} c\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 \sqrt [3]{a} b^{4/3}}-\frac{\left (a^{2/3} e+b^{2/3} c\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 \sqrt [3]{a} b^{4/3}}-\frac{\left (b^{2/3} c-a^{2/3} e\right ) \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} \sqrt [3]{a} b^{4/3}}+\frac{d \log \left (a+b x^3\right )}{3 b}+\frac{e x}{b} \]

Antiderivative was successfully verified.

[In]

Int[(x*(c + d*x + e*x^2))/(a + b*x^3),x]

[Out]

(e*x)/b - ((b^(2/3)*c - a^(2/3)*e)*ArcTan[(a^(1/3) - 2*b^(1/3)*x)/(Sqrt[3]*a^(1/3))])/(Sqrt[3]*a^(1/3)*b^(4/3)
) - ((b^(2/3)*c + a^(2/3)*e)*Log[a^(1/3) + b^(1/3)*x])/(3*a^(1/3)*b^(4/3)) + ((b^(2/3)*c + a^(2/3)*e)*Log[a^(2
/3) - a^(1/3)*b^(1/3)*x + b^(2/3)*x^2])/(6*a^(1/3)*b^(4/3)) + (d*Log[a + b*x^3])/(3*b)

Rule 1887

Int[(Pq_)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Int[ExpandIntegrand[Pq/(a + b*x^n), x], x] /; FreeQ[{a, b}, x
] && PolyQ[Pq, x] && IntegerQ[n]

Rule 1871

Int[(P2_)/((a_) + (b_.)*(x_)^3), x_Symbol] :> With[{A = Coeff[P2, x, 0], B = Coeff[P2, x, 1], C = Coeff[P2, x,
 2]}, Int[(A + B*x)/(a + b*x^3), x] + Dist[C, Int[x^2/(a + b*x^3), x], x] /; EqQ[a*B^3 - b*A^3, 0] ||  !Ration
alQ[a/b]] /; FreeQ[{a, b}, x] && PolyQ[P2, x, 2]

Rule 1860

Int[((A_) + (B_.)*(x_))/((a_) + (b_.)*(x_)^3), x_Symbol] :> With[{r = Numerator[Rt[a/b, 3]], s = Denominator[R
t[a/b, 3]]}, -Dist[(r*(B*r - A*s))/(3*a*s), Int[1/(r + s*x), x], x] + Dist[r/(3*a*s), Int[(r*(B*r + 2*A*s) + s
*(B*r - A*s)*x)/(r^2 - r*s*x + s^2*x^2), x], x]] /; FreeQ[{a, b, A, B}, x] && NeQ[a*B^3 - b*A^3, 0] && PosQ[a/
b]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 634

Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Dist[(2*c*d - b*e)/(2*c), Int[1/(a +
 b*x + c*x^2), x], x] + Dist[e/(2*c), Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x] &
& NeQ[2*c*d - b*e, 0] && NeQ[b^2 - 4*a*c, 0] &&  !NiceSqrtQ[b^2 - 4*a*c]

Rule 617

Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = 1 - 4*Simplify[(a*c)/b^2]}, Dist[-2/b, Sub
st[Int[1/(q - x^2), x], x, 1 + (2*c*x)/b], x] /; RationalQ[q] && (EqQ[q^2, 1] ||  !RationalQ[b^2 - 4*a*c])] /;
 FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 204

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTan[(Rt[-b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[-b, 2]), x] /
; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])

Rule 628

Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[(d*Log[RemoveContent[a + b*x +
c*x^2, x]])/b, x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]

Rule 260

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rubi steps

\begin{align*} \int \frac{x \left (c+d x+e x^2\right )}{a+b x^3} \, dx &=\int \left (\frac{e}{b}-\frac{a e-b c x-b d x^2}{b \left (a+b x^3\right )}\right ) \, dx\\ &=\frac{e x}{b}-\frac{\int \frac{a e-b c x-b d x^2}{a+b x^3} \, dx}{b}\\ &=\frac{e x}{b}-\frac{\int \frac{a e-b c x}{a+b x^3} \, dx}{b}+d \int \frac{x^2}{a+b x^3} \, dx\\ &=\frac{e x}{b}+\frac{d \log \left (a+b x^3\right )}{3 b}-\frac{\int \frac{\sqrt [3]{a} \left (-\sqrt [3]{a} b c+2 a \sqrt [3]{b} e\right )+\sqrt [3]{b} \left (-\sqrt [3]{a} b c-a \sqrt [3]{b} e\right ) x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx}{3 a^{2/3} b^{4/3}}-\frac{\left (b^{2/3} c+a^{2/3} e\right ) \int \frac{1}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{3 \sqrt [3]{a} b}\\ &=\frac{e x}{b}-\frac{\left (b^{2/3} c+a^{2/3} e\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 \sqrt [3]{a} b^{4/3}}+\frac{d \log \left (a+b x^3\right )}{3 b}+\frac{\left (b^{2/3} c-a^{2/3} e\right ) \int \frac{1}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx}{2 b}+\frac{\left (b^{2/3} c+a^{2/3} e\right ) \int \frac{-\sqrt [3]{a} \sqrt [3]{b}+2 b^{2/3} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx}{6 \sqrt [3]{a} b^{4/3}}\\ &=\frac{e x}{b}-\frac{\left (b^{2/3} c+a^{2/3} e\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 \sqrt [3]{a} b^{4/3}}+\frac{\left (b^{2/3} c+a^{2/3} e\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 \sqrt [3]{a} b^{4/3}}+\frac{d \log \left (a+b x^3\right )}{3 b}+\frac{\left (b^{2/3} c-a^{2/3} e\right ) \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1-\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a}}\right )}{\sqrt [3]{a} b^{4/3}}\\ &=\frac{e x}{b}-\frac{\left (b^{2/3} c-a^{2/3} e\right ) \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} \sqrt [3]{a} b^{4/3}}-\frac{\left (b^{2/3} c+a^{2/3} e\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 \sqrt [3]{a} b^{4/3}}+\frac{\left (b^{2/3} c+a^{2/3} e\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 \sqrt [3]{a} b^{4/3}}+\frac{d \log \left (a+b x^3\right )}{3 b}\\ \end{align*}

Mathematica [A]  time = 0.0558075, size = 200, normalized size = 1.09 \[ -\frac{\left (a^{4/3} \left (-\sqrt [3]{b}\right ) e-a^{2/3} b c\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 a b^{5/3}}+\frac{\left (a^{4/3} \left (-\sqrt [3]{b}\right ) e-a^{2/3} b c\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a b^{5/3}}+\frac{\left (a^{2/3} b c-a^{4/3} \sqrt [3]{b} e\right ) \tan ^{-1}\left (\frac{2 \sqrt [3]{b} x-\sqrt [3]{a}}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} a b^{5/3}}+\frac{d \log \left (a+b x^3\right )}{3 b}+\frac{e x}{b} \]

Antiderivative was successfully verified.

[In]

Integrate[(x*(c + d*x + e*x^2))/(a + b*x^3),x]

[Out]

(e*x)/b + ((a^(2/3)*b*c - a^(4/3)*b^(1/3)*e)*ArcTan[(-a^(1/3) + 2*b^(1/3)*x)/(Sqrt[3]*a^(1/3))])/(Sqrt[3]*a*b^
(5/3)) + ((-(a^(2/3)*b*c) - a^(4/3)*b^(1/3)*e)*Log[a^(1/3) + b^(1/3)*x])/(3*a*b^(5/3)) - ((-(a^(2/3)*b*c) - a^
(4/3)*b^(1/3)*e)*Log[a^(2/3) - a^(1/3)*b^(1/3)*x + b^(2/3)*x^2])/(6*a*b^(5/3)) + (d*Log[a + b*x^3])/(3*b)

________________________________________________________________________________________

Maple [A]  time = 0.003, size = 209, normalized size = 1.1 \begin{align*}{\frac{ex}{b}}-{\frac{ae}{3\,{b}^{2}}\ln \left ( x+\sqrt [3]{{\frac{a}{b}}} \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}+{\frac{ae}{6\,{b}^{2}}\ln \left ({x}^{2}-\sqrt [3]{{\frac{a}{b}}}x+ \left ({\frac{a}{b}} \right ) ^{{\frac{2}{3}}} \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}-{\frac{a\sqrt{3}e}{3\,{b}^{2}}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{x{\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}-1 \right ) } \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}-{\frac{c}{3\,b}\ln \left ( x+\sqrt [3]{{\frac{a}{b}}} \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}+{\frac{c}{6\,b}\ln \left ({x}^{2}-\sqrt [3]{{\frac{a}{b}}}x+ \left ({\frac{a}{b}} \right ) ^{{\frac{2}{3}}} \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}+{\frac{c\sqrt{3}}{3\,b}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{x{\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}-1 \right ) } \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}+{\frac{d\ln \left ( b{x}^{3}+a \right ) }{3\,b}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(e*x^2+d*x+c)/(b*x^3+a),x)

[Out]

e*x/b-1/3/b^2*a/(1/b*a)^(2/3)*ln(x+(1/b*a)^(1/3))*e+1/6/b^2*a/(1/b*a)^(2/3)*ln(x^2-(1/b*a)^(1/3)*x+(1/b*a)^(2/
3))*e-1/3/b^2*a/(1/b*a)^(2/3)*3^(1/2)*arctan(1/3*3^(1/2)*(2/(1/b*a)^(1/3)*x-1))*e-1/3/b/(1/b*a)^(1/3)*ln(x+(1/
b*a)^(1/3))*c+1/6/b/(1/b*a)^(1/3)*ln(x^2-(1/b*a)^(1/3)*x+(1/b*a)^(2/3))*c+1/3/b*3^(1/2)/(1/b*a)^(1/3)*arctan(1
/3*3^(1/2)*(2/(1/b*a)^(1/3)*x-1))*c+1/3*d*ln(b*x^3+a)/b

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(e*x^2+d*x+c)/(b*x^3+a),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [C]  time = 9.56091, size = 9754, normalized size = 53.3 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(e*x^2+d*x+c)/(b*x^3+a),x, algorithm="fricas")

[Out]

-1/12*(2*(2*(1/2)^(2/3)*(-I*sqrt(3) + 1)*(d^2/b^2 - (d^2 - c*e)/b^2)/(2*d^3/b^3 - 3*(d^2 - c*e)*d/b^3 - (b^2*c
^3 + a^2*e^3 - (d^3 - 3*c*d*e)*a*b)/(a*b^4) - (b^2*c^3 - a^2*e^3)/(a*b^4))^(1/3) + (1/2)^(1/3)*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 - (b^2*c^3 + a^2*e^3 - (d^3 - 3*c*d*e)*a*b)/(a*b^4) - (b^2*c^3 - a^2*e^3)/(a*b
^4))^(1/3) - 2*d/b)^2*b^2 + 4*(2*(1/2)^(2/3)*(-I*sqrt(3) + 1)*(d^2/b^2 - (d^2 - c*e)/b^2)/(2*d^3/b^3 - 3*(d^2
- c*e)*d/b^3 - (b^2*c^3 + a^2*e^3 - (d^3 - 3*c*d*e)*a*b)/(a*b^4) - (b^2*c^3 - a^2*e^3)/(a*b^4))^(1/3) + (1/2)^
(1/3)*(I*sqrt(3) + 1)*(2*d^3/b^3 - 3*(d^2 - c*e)*d/b^3 - (b^2*c^3 + a^2*e^3 - (d^3 - 3*c*d*e)*a*b)/(a*b^4) - (
b^2*c^3 - a^2*e^3)/(a*b^4))^(1/3) - 2*d/b)*b*d + 4*d^2 - 16*c*e)/b^2)))/b

________________________________________________________________________________________

Sympy [A]  time = 1.65329, size = 160, normalized size = 0.87 \begin{align*} \operatorname{RootSum}{\left (27 t^{3} a b^{4} - 27 t^{2} a b^{3} d + t \left (- 9 a b^{2} c e + 9 a b^{2} d^{2}\right ) + a^{2} e^{3} + 3 a b c d e - a b d^{3} + b^{2} c^{3}, \left ( t \mapsto t \log{\left (x + \frac{- 9 t^{2} a b^{3} c - 3 t a^{2} b e^{2} + 6 t a b^{2} c d + a^{2} d e^{2} + 2 a b c^{2} e - a b c d^{2}}{a^{2} e^{3} - b^{2} c^{3}} \right )} \right )\right )} + \frac{e x}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(e*x**2+d*x+c)/(b*x**3+a),x)

[Out]

RootSum(27*_t**3*a*b**4 - 27*_t**2*a*b**3*d + _t*(-9*a*b**2*c*e + 9*a*b**2*d**2) + a**2*e**3 + 3*a*b*c*d*e - a
*b*d**3 + b**2*c**3, Lambda(_t, _t*log(x + (-9*_t**2*a*b**3*c - 3*_t*a**2*b*e**2 + 6*_t*a*b**2*c*d + a**2*d*e*
*2 + 2*a*b*c**2*e - a*b*c*d**2)/(a**2*e**3 - b**2*c**3)))) + e*x/b

________________________________________________________________________________________

Giac [A]  time = 1.07542, size = 257, normalized size = 1.4 \begin{align*} \frac{x e}{b} + \frac{d \log \left ({\left | b x^{3} + a \right |}\right )}{3 \, b} - \frac{\sqrt{3}{\left (\left (-a b^{2}\right )^{\frac{1}{3}} a e + \left (-a b^{2}\right )^{\frac{2}{3}} c\right )} \arctan \left (\frac{\sqrt{3}{\left (2 \, x + \left (-\frac{a}{b}\right )^{\frac{1}{3}}\right )}}{3 \, \left (-\frac{a}{b}\right )^{\frac{1}{3}}}\right )}{3 \, a b^{2}} - \frac{{\left (\left (-a b^{2}\right )^{\frac{1}{3}} a e - \left (-a b^{2}\right )^{\frac{2}{3}} c\right )} \log \left (x^{2} + x \left (-\frac{a}{b}\right )^{\frac{1}{3}} + \left (-\frac{a}{b}\right )^{\frac{2}{3}}\right )}{6 \, a b^{2}} - \frac{{\left (b^{3} c \left (-\frac{a}{b}\right )^{\frac{1}{3}} - a b^{2} e\right )} \left (-\frac{a}{b}\right )^{\frac{1}{3}} \log \left ({\left | x - \left (-\frac{a}{b}\right )^{\frac{1}{3}} \right |}\right )}{3 \, a b^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(e*x^2+d*x+c)/(b*x^3+a),x, algorithm="giac")

[Out]

x*e/b + 1/3*d*log(abs(b*x^3 + a))/b - 1/3*sqrt(3)*((-a*b^2)^(1/3)*a*e + (-a*b^2)^(2/3)*c)*arctan(1/3*sqrt(3)*(
2*x + (-a/b)^(1/3))/(-a/b)^(1/3))/(a*b^2) - 1/6*((-a*b^2)^(1/3)*a*e - (-a*b^2)^(2/3)*c)*log(x^2 + x*(-a/b)^(1/
3) + (-a/b)^(2/3))/(a*b^2) - 1/3*(b^3*c*(-a/b)^(1/3) - a*b^2*e)*(-a/b)^(1/3)*log(abs(x - (-a/b)^(1/3)))/(a*b^3
)